<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class CoinClueGlobal extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'coin_clue_global';

    public function getContentAttribute($value)
    {
        return $this->type == CoinClue::TYPE_IMAGE ? trim(config('filesystems.disks.aliyun.domain'), '/') . '/' . $value : $value;
    }
}
